//
//  LYYHeaderCollectionViewCell.m
//  Icar
//
//  Created by dllo on 15/10/16.
//  Copyright © 2015年 小龙侠. All rights reserved.
//

#import "LYYHeaderCollectionViewCell.h"
#import "BaseHeader.h"
@implementation LYYHeaderCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, WIDTH(120), HEIGHT(39))];
        [self.titleLabel setTextColor:[UIColor blackColor]];
        if (SCREEN_HEIGHT == 667) {
            [self.titleLabel setFont:[UIFont systemFontOfSize:18.]];
        }else if (SCREEN_HEIGHT == 480){
            [self.titleLabel setFont:[UIFont systemFontOfSize:14.]];
        }else if (SCREEN_HEIGHT == 568){
            [self.titleLabel setFont:[UIFont systemFontOfSize:16.]];
        }else if (SCREEN_HEIGHT == 736){
            [self.titleLabel setFont:[UIFont systemFontOfSize:20.]];
        }
        [self.contentView addSubview:self.titleLabel];
        [self.titleLabel setTextAlignment:NSTextAlignmentCenter];
        
        self.lineView = [[UIImageView alloc]initWithFrame:CGRectMake(0, HEIGHT(42), WIDTH(120), 2)];
        [self.lineView setBackgroundColor:BARCOLOR];
        [self.contentView addSubview:self.lineView];
    }
    return self;
}

@end
